package com.share;

import org.mybatis.spring.annotation.MapperScan;
import org.springframework.boot.SpringApplication;
import org.springframework.boot.WebApplicationType;
import org.springframework.boot.autoconfigure.SpringBootApplication;
import org.springframework.boot.autoconfigure.jdbc.DataSourceAutoConfiguration;
import org.springframework.boot.builder.SpringApplicationBuilder;
import org.springframework.cloud.client.discovery.EnableDiscoveryClient;
import org.springframework.cloud.openfeign.EnableFeignClients;

/**
 * @author caifan
 * @date 2020/1/1
 */
@EnableDiscoveryClient
@EnableFeignClients
@SpringBootApplication(scanBasePackages = {"com.share"}, exclude = DataSourceAutoConfiguration.class)
@MapperScan(basePackages = {"com.share.mapper"})
public class StorageApplication {
    public static void main(String[] args) {
//        new SpringApplicationBuilder(StorageApplication.class).web(WebApplicationType.SERVLET).run(args);
        SpringApplication.run(StorageApplication.class, args);
    }
}
